error analysis in secant method